<template>
    <div>
        <div v-for="(item, index) of categoryList" :key="index" class="wrapper">
            <span class="mp-ticketype-ticket"></span>{{item.title}}
            <div v-if="item.children" style="padding-left:.2rem">
                <list :categoryList="item.children"></list>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "list",
        props:{
            categoryList: Array
        }
    }
</script>

<style scoped lang="stylus">
    .wrapper
        position: relative
        line-height: .62rem
        text-indent: .62rem
    .mp-ticketype-ticket
        display: inline-block;
        position: absolute;
        width: .36rem;
        height: .36rem;
        top: .14rem;
        left: .2rem;
        background: url(http://s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -.45rem no-repeat;
        margin-right: .1rem;
        background-size: .4rem 3rem;
</style>